﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FlatRedBall;
using FlatRedBall.Math.Geometry;
using FlatRedBall.Graphics;

using ROMAP.Utilities;

namespace ROMAP.Entities.Tiles
{
    public class GroundTile : Tile
    {
        protected string filename;

        public GroundTile(int x, int y, string filename)
        {
            TilePosition = new Vector2i(x, y);
            this.filename = filename;
            Initialize();
        }

        protected override void Initialize()
        {
            _sprite = SpriteManager.AddSprite(CreateSprite(), "Content");
            _sprite.PixelScale();
            _sprite.ScaleX *= .5f;
            _sprite.ScaleY *= .5f;
            _sprite.AttachTo(this, false);

            base.Initialize();
        }

        protected string CreateSprite()
        {
            //return @"Content/Tiles/GroundTiles/" + filename;
            return @"Content/Tiles/NormalTiles/" + filename;
        }

        public override void Activity()
        {
            throw new NotImplementedException();
        }

    }
}
